package com.etc.service;

import java.util.List;

import com.etc.entity.Bus;
import com.etc.entity.BusInfo;
import com.etc.util.PageData;

public interface BusService {

	//增加车辆
	public boolean insertBus(Bus bus);

	//删除
	public boolean delBus(int id);

	//修改车辆信息
	public boolean updateBus(BusInfo busInfo);

	//查询车辆信息
	public List<Bus> queryBus();

	//查询车辆详细信息
	public PageData getBusByLikeAndLimit(int pageNo, int pageSize);

	//根据站点名查询站点编号
	public int getSiteId(String name);

	//根据站点名查询车辆编号和终点站
	public List<BusInfo> getBusIdAndEnd(String name);

	//根据车辆编号查询车辆路线
	public List<String> getBusRoute(int b_id);
}
